package com.dongge.action;

import com.opensymphony.xwork2.ActionSupport;

import java.io.File;

/**
 * Created by Administrator on 2015/10/2.
 */


public class MultiFileUpload extends ActionSupport{
    private File[] files;
    private String[] fileNames;
    private String[] contentTypes;

    /**
     * <form method="post" enctype="multipart/form-data">
     *     <input type="file" type="upXXX">
     *     <input type="file" type="upXXX">
     *     <input type="file" type="upXXX">
     * </form>
     * @param files
     */

    public void setUpXXX(File[] files){
        this.files = files;
    }

//    public File[] getUpXXX(){
//        return this.files;
//    }

    public void setUpXXXFileName(String[] fileNames){
        this.fileNames = fileNames;
    }

//    public String[] getUpXXXFileNames(String[] fileNames){
//        return this.fileNames;
//    }


    public void setUpXXXContentType(String[] contentTypes){
        this.contentTypes = contentTypes;
    }

//    public String[] getUpXXXContentTypes(){
//        return this.contentTypes;
//    }


    public File[] getFiles() {
        return files;
    }

    public String[] getFileNames() {
        return fileNames;
    }

    public String[] getContentTypes() {
        return contentTypes;
    }

    @Override
    public String execute() throws Exception {
        return SUCCESS;
    }
}

